package com.sen.controller;


import com.sen.entity.MenuEntity;
import com.sen.entity.RoleEntity;
import com.sen.service.MenuService;
import com.sen.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * 权利表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-01-08 17:54:40
 */
@RestController
@RequestMapping("menu")
public class MenuController {
    @Autowired
    private MenuService menuService;

    /**
     * 查询所有菜单
     */
    @RequestMapping("/queryAll")
    public R queryAll(){
        List<MenuEntity> menus = menuService.queryListMenus();

        return R.ok().put("menus", menus);
    }
   /* public R queryAllByRole(RoleEntity roleEntity){

    }*/
}
